<script lang="ts" setup>
interface ActionSheetProps {
  state?: string;
  visible?: boolean;
}

defineProps<ActionSheetProps>();
const emit = defineEmits(["cancel"]);
</script>

<template>
  <div v-if="visible" class="umrp-action-sheet">
    <div class="umrp-action-sheet-wrapper">
      <div class="umrp-action-sheet-item">拍照</div>
      <div class="umrp-action-sheet-item">从手机相册选择</div>
    </div>
    <div class="umrp-action-sheet-cancel">取消</div>
  </div>
</template>

<style lang="scss" scoped>
.umrp-action-sheet {
  padding: 0 10px 10px;
  position: fixed;
  box-sizing: border-box;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 999;
  color: #1890ff;

  &-wrapper {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  &-item {
    background-color: #fff;
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
  }

  &-cancel {
    background-color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
  }
}
</style>
